import request from "./request";

/**
 * 获取流量列表
 */
export const getFlows = () => {
  return request({
    method: "GET",
    url: "/flows",
  });
};

/**
* 修改流量状态
*/
export const corrFlows = (id) => {
  return request({
    method: "PUT",
    url: "/flows",
  });
};

/**
* 删除流量
*/
export const deleteFlows = (id) => {
  return request({
    method: "DELETE",
    url: `/flows/${id}`,
  });
};